package priv.lhy.ribbon.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
import priv.lhy.ribbon.service.HelloService;

/**
 * @Author: Administrator
 * date: 2019/9/10
 * description:
 */

@RestController
public class ConsumerController {

    @Autowired
    HelloService service;

    @RequestMapping("/ribbon-consumer")
    public String helloConsumer() {
        return service.helloService();
    }

    @RequestMapping("/self-ribbon-consumer")
    public String selfHelloConsumer() {
        return service.selfHelloService();
    }
}
